package com.ziyueyuwen.xiniao.dao;

import com.ziyueyuwen.xiniao.bean.question.ZyQuestionCourseQuestion;
import com.ziyueyuwen.xiniao.bean.vo.QuestionLessonModuleVO;
import com.ziyueyuwen.xiniao.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author wancheng
 */
public interface ZyQuestionLessonCourseMapper extends BaseMapper<ZyQuestionCourseQuestion>{
    /**
     * 批量保存
     * @param questions
     */
    void insertBatch(@Param("questions") List<ZyQuestionCourseQuestion> questions);

    /**
     * 获取
     * @param questionId
     * @return
     */
    List<QuestionLessonModuleVO> getCourseNameAndLessonModule(Integer questionId);
}